﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Krile.Kernel;
using Krile.Kernel.Data;
using Krile.Common;

namespace Wassrile.Searchs
{
    public class SearchByChannelId : DefaultSearchDataBase
    {
        public override string Identification
        {
            get { return "WASSRILE_WASSR_KRILE_PLUGIN_SEARCH_CHID"; }
        }

        protected override bool IsMatchedInner(Status status)
        {
            if (status.ParentService.ParentPluginId != Define.PluginId)
                return false;
            return IsSearchDataMatched(((Operation.DataClasses.WStatus)status).channelId);
        }

        public override string Description
        {
            get { return "チャンネルID\"" + this.Arguments + "\"に投稿されたWassrのステータスを検索します。"; }
        }

        public override string Name
        {
            get { return "WassrチャンネルID検索"; }
        }

        public override object Clone()
        {
            return Clone(new SearchByChannelId());
        }

        public override string Class
        {
            get { return "WChannelID"; }
        }
    }
}
